package com.greate.community.service.master;

import com.greate.community.dao.admin.LoginAdminMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginAdminService {

    @Autowired
    LoginAdminMapper loginAdminMapper;

    public boolean isAdminUser(String username) {
        Integer adminUser = loginAdminMapper.isAdminUser(username);
        if (adminUser!=null){
            return true;
        }
        return false;
    }
}
